package edu.pku.sei.transformation.editor.controller.commands.link;

import org.eclipse.gef.commands.Command;

public abstract class AbstractLinkCommand<LinkType, SourceType, TargetType> extends Command{
	protected LinkType link;
	protected SourceType source;
	protected TargetType target;
	public AbstractLinkCommand(String label){
		super(label);
	}
	
	@Override
	public boolean canExecute() {
		if (source != null && target != null && link != null)
			return super.canExecute();
		else
			return false;
	}
}
